package io.renren.modules.yckj.dto;


import io.renren.common.utils.TreeNode;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.util.Date;


/**
 * 项目分类表
 *
 * @author Mark sunlightcs@gmail.com
 * @since 1.0.0 2025-04-22
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Schema(title = "项目分类表")
public class CateDTO extends TreeNode<CateDTO> implements Serializable {
    private static final long serialVersionUID = 1L;

    @Schema(title = "主键")
    private Long id;

    @Schema(title = "分类名称")
    private String name;

    @Schema(title = "父分类id")
    private Long pid;

    @Schema(title = "所有上级ID，用逗号分开")
    private String pids;

    @Schema(title = "是否上架：0否，1是")
    private Integer status;

    @Schema(title = "是否热门：0否，1是")
    private Integer hot;

    @Schema(title = "排序")
    private Integer sort;

    @Schema(title = "创建者")
    private String creator;

    @Schema(title = "更新者")
    private String updater;

    @Schema(title = "创建时间")
    private Date createTime;

    @Schema(title = "更新时间")
    private Date updateTime;

    @Schema(title = "上级名称")
    private String parentName;


}